<head>
<link rel="stylesheet" type="text/css" href="panel.css">
</head><body>
<?php
$NameFile=$_POST['name_file'];
$textarea1=$_POST['TextArea1'];
$textarea2=$_POST['TextArea2'];
$textarea3=$_POST['TextArea3'];
$textarea4=$_POST['TextArea4'];
$textarea5=$_POST['TextArea5'];
$textarea6=$_POST['TextArea6'];
$textarea7=$_POST['TextArea7'];
$textarea8=$_POST['TextArea8'];

$text2 .="<table id='table'>";
if (!empty($textarea1)){$text2 .="<td id='td1'>$textarea1</td>"."\n";}
if (!empty($textarea2)){$text2 .="<td id='td2'>$textarea2</td>"."\n";}
if (!empty($textarea3)){$text2 .="<td id='td3'>$textarea3</td>"."\n";}
if (!empty($textarea4)){$text2 .="<td id='td4'>$textarea4</td>"."\n";}
if (!empty($textarea5)){$text2 .="<td id='td5'>$textarea5</td>"."\n";}
if (!empty($textarea6)){$text2 .="<td id='td6'>$textarea6</td>"."\n";}
if (!empty($textarea7)){$text2 .="<td id='td7'>$textarea7</td>"."\n";}
if (!empty($textarea8)){$text2 .="<td id='td7'>$textarea8</td>"."\n";}
$text2 .="</table>"."\n";

if (!empty($NameFile))
{
	$file = fopen ("WWW/$NameFile.php", "a+");
	fwrite ($file,$text2);
	fclose ($file);
}

$text3 .="<table style='border: 1px solid #404060;'>"."\n";
$text3 .="<td width='30px' height='30px'><img src='img/table.png'></td>"."\n";
$text3 .="<td width='200px' height='30px'> Table </td>"."\n";
$text3 .="<td width='200px' height='30px'>Table</td>"."\n";
$text3 .="<td width='200px' height='30px'>$NameFile</td>"."\n";
$text3 .="</table>"."\n";
if (!empty($name_element) && !empty($name_file))
{
	$file = fopen ("Elements.php", "a+");
	fwrite ($file,$text3);
	fclose ($file);
}
?>
